public class Temperature
{
  float currentTemp;
  
  public Temperature(float current)
  {
    this.currentTemp=current;
  }
  
  public float getTemp()
  {
   
    return this.currentTemp; 
  }
  
  public float setTemp(float desired)
  {
    if(desired<25 || desired>90)
      throw new RuntimeException("Such extreme values are not safe, please try again");
    this.currentTemp=desired;
  
    return this.currentTemp;
  }
  
}